package com.qq2008.game.mojie.service.impl;

import com.qq2008.game.mojie.jdo.Monster;
import com.qq2008.game.mojie.mapper.NPCMapper;
import com.qq2008.game.mojie.service.NpcService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class NPCServiceImpl implements NpcService {

    @Resource
    private NPCMapper mapper;

    private List<Monster> list;


    @Override
    public Monster get(int id) {
        return mapper.get(id);
    }

    @Override
    public List<Monster> list(Map<String, Object> param) {
        return mapper.list(param);
    }

    @Override
    public int insert(Monster moMonster) {
        return mapper.insert(moMonster);
    }

    @Override
    public int update(Monster moMonster) {
        return mapper.update(moMonster);
    }

    @Override
    public int update(Map<String, Object> param, Map<String, Object> data) {
        return mapper.update(param, data);
    }

    @Override
    public int delete(int id) {
        return mapper.delete(id);
    }

    @Override
    public int delete(Map<String, Object> param) {
        return mapper.delete(param);
    }

    @Override
    public int count(Map<String, Object> param) {
        return mapper.count(param);
    }
}
